package org.arabidopsis.plantCyc;

public class ECnumberPair {
	ECnumber ecNUmber1;
	ECnumber ecNUmber2;
	ECnumberPair(ECnumber num1, ECnumber num2){
		if (num1.toString().compareTo(num2.toString())==0){
			System.out.println("ERROR: can't create pair of same ECnums");
		}
		else if(num1.toString().compareTo(num2.toString())<0){
			ecNUmber1=num1;
			ecNUmber2=num2;
		}
		else{
			ecNUmber2=num1;
			ecNUmber1=num2;
		}
	}
    public String toString() {
    	return ecNUmber1+"X"+ecNUmber2; 
    }
}
